<div id="common-detail-view" class="common-detail-view">
    <div p-each="list">
        <!--普通文本-->
        <div class="layui-form-item">
            <div class="lab-title">{{title}}</div>
            <div p-if="{{code}}==1" class="layui-detail-block">{{field}}</div>
            <!--单图-->
            <div p-if="{{code}}==2" class="layui-detail-block">
                <img p-if="{{code}}==2" class="layui-upload-img" style="margin: 10px;max-height:200px;"
                     p-bind="src:{{field}}">
            </div>
            <!--多图-->
            <div p-if="{{code}}==3" class="layui-detail-block" p-each="items">
                <img  class="layui-upload-img" style="margin: 10px;max-height:200px;"
                     p-bind="src:{{src}}">
            </div>
            <!--文件-->
            <div p-if="{{code}}==4" class="layui-detail-block" p-each="items">
                <a  class="download" p-bind="href:{{href}}" title="点击下载" style="color:#0fb0e5">{{name}}</a>
            </div>
            <!--附加信息-->
            <div p-if="{{code}}==5" class="layui-detail-block extend-cot">
                <div class="extend-detail">
                    <div class="line title">
                        <div class="item">字段名</div>
                        <div class="item">字段值</div>
                    </div>
                    <div p-if="{{code}}==5" class="content" p-each="items">
                        <div class="line">
                            <div class="item">{{key}}</div>
                            <div class="item">{{val}}</div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>